package railRoad.worker;

import railRoad.Schedule;

public class Main {
	
	//use it to write start data to DB from XML
	public static void main(String[] args)
	{
		FactoryRW.readXML("..\\rukin_railroad\\src\\main\\resources\\data\\RailRoad.xml");
		
		FactoryRW.initDB("sa", "");
		FactoryRW.writeDB();
		//FactoryRW.readDB();
		System.out.println(Schedule.getInstance().toString());
		FactoryRW.closeDB();
	}//main
}
